﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Class1
    {

        private string name;
        private string name1;
        private string name2;
        private string name3;
        private string name4;

        public string Name {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Name1
        {
            get { return this.name1; }
            set { this.name1 = value; }
        }
        public string Name2
        {
            get { return this.name2; }
            set { this.name2 = value; }
        }
        public string Name3
        {
            get { return this.name3; }
            set { this.name3 = value; }
        }
        public string Name4
        {
            get { return this.name4; }
            set { this.name4 = value; }
        }
        public void text1(){
            Console.WriteLine("大家好，我是{0},我老师是{1}", this.Name,this.name4);
            Console.WriteLine("大家好，我是{0},我老师是{1}", this.Name1, this.name4);
            Console.WriteLine("大家好，我是{0},我老师是{1}", this.Name2, this.name4);
            Console.WriteLine("大家好，我是{0},我老师是{1}", this.Name3, this.name4);
            text();
            Console.WriteLine();
            Console.WriteLine("大家好，我是{0},我老师是{1}", this.Name, this.name4);
            Console.WriteLine("大家好，我是{0},我老师是{1}", this.Name1, this.name4);
            Console.WriteLine("大家好，我是{0},我老师是{1}", this.Name2, this.name4);
            Console.WriteLine("大家好，我是{0},我老师是{1}", this.Name3, this.name4);
        }
        
        void text() {
            Name4 = "嫦娥";
        }

    }
    
}
